package com.zhenhao.xsq.ui.activity.user;


//import com.yxld.yxchuangxin.xsq.utils.ImgUtil;


import android.os.Bundle;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.zhenhao.xsq.R;
import com.zhenhao.xsq.application.AppConfig;
import com.zhenhao.xsq.base.BaseActivity;
import com.zhenhao.xsq.ui.activity.user.component.DaggerUserInfoComponent;
import com.zhenhao.xsq.ui.activity.user.contract.UserInfoContract;
import com.zhenhao.xsq.ui.activity.user.module.UserInfoModule;
import com.zhenhao.xsq.ui.activity.user.presenter.UserInfoPresenter;

import javax.inject.Inject;

import butterknife.BindView;
import butterknife.ButterKnife;

/**
 * @author xlei
 * @Package com.yxld.gb.xsq.ui.activity.user
 * @Description: $description
 * @date 2019/03/15 13:59:39
 */

public class UserInfoActivity extends BaseActivity implements UserInfoContract.View {

    @Inject
    UserInfoPresenter mPresenter;


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    }

    @Override
    protected void initView() {
        setContentView(R.layout.activity_user_info);
        ButterKnife.bind(this);
        //        getSupportActionBar().setDisplayHomeAsUpEnabled(true);
        setToolbarTitle("住户信息");
    }

    @Override
    protected void initData() {

    }

    @Override
    protected void setupActivityComponent() {
        DaggerUserInfoComponent
                .builder()
                .appComponent(((AppConfig) getApplication()).getApplicationComponent())
                .userInfoModule(new UserInfoModule(this))
                .build()
                .inject(this);
    }

    @Override
    public void setPresenter(UserInfoContract.UserInfoContractPresenter presenter) {
        mPresenter = (UserInfoPresenter) presenter;
    }

    @Override
    public void showProgressDialog() {
        progressDialog.show();
    }

    @Override
    public void closeProgressDialog() {
        progressDialog.hide();
    }

}